package com.oo.inherit_3.bird;

/**
 * Spadger--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 10:01
 **/
public class Spadger extends Bird {

    public Spadger() {
    }

    public Spadger(String name, String color) {
        super(name, color);
    }

    @Override
    protected void fly() {
        System.out.println("我是麻雀" + this.getName() + "，动作敏捷，飞的快");
    }

    @Override
    protected void eat() {
        System.out.println("我不仅吃种子，还吃害虫");
    }
}
